<include file="public@header"/>

</head>
<body>
<div class="js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">插班统计</a></li>
    </ul>
    <form class="well form-inline margin-top-20 row" method="post" action="{:url('InsertClass/index')}">
        <label for="开始时间" class="col-md-6 col-xs-12 form-group">
            开始时间:
            <input class="form-control" type="text" name="homework_starttime" style="" value="{:input('request.homework_starttime')}"
                   placeholder="年/月/日">
            -
            <input class="form-control" type="text" name="homework_endtime" style="" value="{:input('request.homework_endtime')}"
                   placeholder="年/月/日">
        </label>
        <label class="col-md-4 col-sm-6  form-group" >
            所属校区:
            <select class="form-control" name="school_id" id="school_id">
                <option value='0'>全部</option>
                <notempty name="school_data">
                    <volist name="school_data" id="vo">
                        <if condition="isset($param.school_id) && $param.school_id == $vo.id">
                            <option value="{$vo.id}" selected>{$vo.name}</option>
                            <else/>
                            <option value="{$vo.id}">{$vo.name}</option>
                        </if>
                    </volist>
                </notempty>
            </select>
        </label>
        <label class="col-md-4 col-sm-6  form-group" >
            课程：
            <select class="form-control" name="course_id" id="student_status">
                <option value="0">全部</option>
                <notempty name="course_data">
                    <volist name="course_data" id="vo">
                        <if condition="isset($param.course_id) && $param.course_id == $vo.id">
                            <option value="{$vo.id}" selected>{$vo.course_name}</option>
                            <else/>
                            <option value="{$vo.id}">{$vo.course_name}</option>
                        </if>
                    </volist>
                </notempty>
            </select>
        </label>

        <label class="col-md-4 col-sm-6   form-group">
            <input type="submit"  class="btn btn-primary" value="搜索"/>
            <a class="btn btn-danger" href="{:url('InsertClass/index')}">清空</a>
        </label>
    </form>
</div>
<!--生成表的地方-->
<!--<div id="main" style="width: 600px;height:400px;" class="center-block"></div>-->
<!--table-->
<table class="table table-hover table-bordered table-list">
    <thead>
    <tr>
        <th width="50">编号</th>
        <th width="100">姓名</th>
        <th width="120">新校区</th>
        <th width="120">新班级</th>
        <th width="100">新课程</th>
        <th width="120">新年级</th>
        <th width="70">报名时间</th>
        <th width="70">剩余课时</th>
        <th width="70">补差金额</th>
        <th width="70">总金额</th>
    </tr>
    </thead>
    <foreach name="data" item="vo">
        <tr>
            <td>
             <php>static $a=0;$a++;echo $a;</php>
            </td>
            <td>{$vo.tname}</td>
            <td>{$vo.sname}</td>
            <td>{$vo.csname}</td>
            <td>{$vo.cname}</td>
            <td>{$vo.tgrade}</td>
            <td>
                {:date('Y-m-d ',$vo.ctcreate_time)}
            </td>

            <td>{$vo.progress}</td>
            <td>{$vo.amount}</td>
            <td>{$vo.pay_amount}</td>
          </tr>
        </foreach>
</table>
<div class="pagination">{$page|default=''}</div>

<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/echarts.js"></script>
<script type="text/javascript">

<!-- 为ECharts准备一个具备大小（宽高）的Dom -->
$(document).ready(function () {
    $('[name="homework_starttime"]').datepicker();
    $('[name="homework_endtime"]').datepicker();
    $('#homework_starttime').datepicker();
    $('#homework_endtime').datepicker();
})

</script>
</body>
</html>